package composite.practice_02;

/**
 * @author yi qiang
 * @date 2021/6/24 23:54
 */
public abstract class OrganizationComponent {

    /**
     * 姓名
     */
    private String name;

    /**
     * 描述
     */
    private String des;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public void add(OrganizationComponent organizationComponent){
        throw new UnsupportedOperationException();
    }

    public void remove(OrganizationComponent organizationComponent){
        throw new UnsupportedOperationException();
    }


    public abstract void print(OrganizationComponent organizationComponent);


}
